﻿<UserControl x:Class="DepSoft.Mobile.WP8.FollwIt.View.Shell.LeftView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
             xmlns:viewModel="clr-namespace:DepSoft.Mobile.WP8.FollwIt.ViewModel"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="480" d:DesignWidth="480"             
             >
    
    <UserControl.Resources>
        <ResourceDictionary Source="/DepSoft.Mobile.WP8.FollwIt;component/Resources/Styles.xaml"/>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid Margin="12" Background="#10000000">
            <TextBlock Margin="6,12"
                       HorizontalAlignment="Center"
                       Text="{Binding FollwItUser.Username}"
                       Style="{StaticResource PhoneTextTitle3Style}"
                       FontWeight="Bold"
                       />
        </Grid>

        <Grid Grid.Row="1">
            <StackPanel>
                <Border x:Name="Account"
                        Background="#20000000" Margin="12,0,12,12"
                        toolkit:TiltEffect.IsTiltEnabled="True"
                        Tap="OnAccountClick">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="77" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <Image Source="/Assets/Icons/appbar.key.png"
                               Style="{StaticResource MenuImageStyle}"
                               Grid.Column="0" />
                        <TextBlock Text="account"
                                   Style="{StaticResource MenuTextBlockStyle}"
                                   Grid.Column="1" />
                    </Grid>
                </Border>

                <Border x:Name="Movies"
                        Background="#20000000" Margin="12,0,12,12"
                        toolkit:TiltEffect.IsTiltEnabled="True"
                        Tap="OnMoviesClick">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="77" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <Image Source="/Assets/Icons/appbar.movie.clapper.png"
                               Style="{StaticResource MenuImageStyle}"
                               Grid.Column="0" />
                        <TextBlock Text="movies"
                                   Style="{StaticResource MenuTextBlockStyle}"
                                   Grid.Column="1" />
                    </Grid>
                </Border>

                <Border x:Name="Series"
                        Background="#20000000" Margin="12,0,12,12"
                        toolkit:TiltEffect.IsTiltEnabled="True"
                        Tap="OnSeriesClick">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="77" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <Image Source="/Assets/Icons/appbar.tv.png"
                               Style="{StaticResource MenuImageStyle}"
                               Grid.Column="0" />
                        <TextBlock Text="series"
                                   Style="{StaticResource MenuTextBlockStyle}"
                                   Grid.Column="1" />
                    </Grid>
                </Border>                
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>